/**
 * 组织管理列表，点击树形时，保存ID和NAME和CHILDRENS
 **/
const organizaiton = {
  state: {
    id: 1,
    name: '',
    childrens: 0
  },
  mutations: {
    setOrganizationId: (state, id) => {
      state.id = id
    },
    setOrganizationName: (state, name) => {
      state.name = name
    },
    setOrganizationChildrens: (state, count) => {
      state.childrens = count
    }
  }
}

export default organizaiton
